
/**
 * The purpose of this class is to declare a car and its characters and functions
 * 
 * @author Shawn Rajput
 *
 */
public class Customer {
	/**
	 * if age is less than 16 he/she is not eligible irrespective of anything
	 * if age is 16 or above, he/she is eligible in NJ 
	 * if he has a DUI he is not eligible
	 * 
	 * 
	 * @param age
	 * @param hasDWI
	 * @param state
	 * @return
	 */
	public boolean iSeligible(int age, boolean hasDWI, String state)
	{
		if(age < 16)
		{
			return false;
		} else if (age >= 16 && (hasDWI))
		{
			return false;
		} else if (age >= 16 && state.equals("TX") && (hasDWI))
		{
			return true;
		} else 
		{
			return false;
		}
	}

}
